 <!DOCTYPE html>
<html>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>凯络科技后台管理系统</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
	<style type="text/css">
		.table th.sorted,.table th:hover{color:#e30}
		.table th.sorted.ascending::after{content:" \2191";display:inline-block;height:10px;font-size:20px;line-height:20px;font-weight:bold;overflow:hidden;margin-left:6px;color:#e30}
		.table th.sorted.descending::after{content:" \2193";display:inline-block;height:10px;font-size:20px;line-height:2px;font-weight:bold;overflow:hidden;margin-left:6px;color:#e30}
		.table th.no-sort,th.no-sort:hover{color:#666;cursor:not-default}

	</style>
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	<link href="__PUBLIC__/css/page.css" rel="stylesheet">
    <link href="__PUBLIC__/css/new.css" rel="stylesheet">
	<script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>
    <script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>
   <script type="text/javascript">
   		//分页
		function page(n,s){
			var type=$('#type').val();
			var starttime=$('#starttime').val();
			var endtime=$('#endtime').val();
			var name =$('#name').val();
			var asc =$('#asc').val();
			
			location.href='log_find?pageNo='+n+'&pageSize='+s+'&type='+type+'&starttime='+starttime+'&endtime'+endtime+'&name='+name+'&asc='+asc;
	    	return false;
	    }
		//删除
		function dele(id){
		    layer.confirm('确定要删除吗？',
			              {btn:['确定','取消']},
						  //function(){location.href='delete?id='+id}),
							  function(){
									$.ajax({
										 type: "GET",
										 url: "order_delete",
										 data: {id:id},
										 success: function(data){
											if(data>0){
												 layer.alert('删除成功','',function(){window.location.reload()});
												 //layer.alert('删除成功！','',function(){window.location.reload());
											}else{
												layer.alert('删除失败！');
											}
										}
									 });
							  }
						  ),
						
						  function(){return false;} 
						  
		}
		
		//排序
		function list_sort(name){
			$(this).attr('background','red');
			if($('#asc').val()=='asc'){
				var asc='desc';
			}else{
				var asc='asc';
			}
			var status=$('#type').val();
			var starttime=$('#starttime').val();
			var endtime=$('#endtime').val();
			//var method_url = '?pageNo='+{$count.pageNo}+'&pageSize='+{$count.pageSize}+'&status='+status+'&tid='+order_sn+'&starttime='+starttime+'&endtime'+endtime+'&name='+name+'&asc='+asc;
			//location.href = method_url;
			
		}	
		
	</script>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>日志列表</h5>
                    </div>
                    <div class="ibox-content">
					<form id="searchForm" class="form-inline" action="log_find" method="post">
					<!-- 查询 -->
					<div class="row">
                            <input type='hidden' name='pageNo' value='1' selected=''/>
                            <input type='hidden' name='pageSize' value='10' />
                            <input type='hidden' id='name' name='name' value='{$order.name}' />
                            <input type='hidden' id='asc' name='asc' value='{$order.asc}' />
                            
                            <div class="col-sm-12 m-b-xs"> 
                             
                            <select class="form-control input-sm" style="padding:0px 6px" name='type' id='type'>
                                <option value="0">日志类型</option>
                                <option <?php echo ($data['type']=='请求日志')?'selected':'' ?> >请求日志</option>
                                <option <?php echo ($data['type']=='返回日志')?'selected':'' ?> >返回日志</option>
                                <option <?php echo ($data['type']=='处理日志')?'selected':'' ?> >处理日志</option>
                                <option <?php echo ($data['type']=='登录日志')?'selected':'' ?> >登录日志</option>
                            </select>
                            
							<input class="form-control input-sm" placeholder="开始时间" name='starttime' id='starttime' onClick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" value="{$data['starttime']}">
							<input class="form-control input-sm" placeholder="结束时间" name='endtime' id='endtime' onClick="laydate({istime: true, format: 'YYYY-MM-DD  hh:mm:ss'})" value="{$data['endtime']}">
							
                            <button type="submit" class="btn btn-sm btn-primary" style="margin:0;"> 搜索</button>
							   <a class="btn btn-white btn-sm "  style="margin:0;"href="javascript:window.location.reload(true);" data-toggle="tooltip" data-placement="left" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</a>
							 </div>
                        </div>
					    </form>
						<form>
						<!-- 信息输出 -->
                        <table class="table table-bordered table-striped table-hover">
                            <thead>
                                <tr>
                                    <th class="sort-column name" on Click="list_sort('id')">id<!--<i class="<?php echo ($order['name']=='id' && $order['asc']=='desc')?'fa fa-sort-desc':'' ?>"></i><i class="<?php echo ($order['name']=='id' && $order['asc']=='asc')?'fa fa-sort-asc':'' ?>"></i></th>-->
                                    <th class="sort-column name" on Click="list_sort('user_id')">用户id<i class="<?php echo ($order['name']=='user_id' && $order['asc']=='desc')?'fa fa-sort-desc':'' ?>"></i><i class="<?php echo ($order['name']=='user_id' && $order['asc']=='asc')?'fa fa-sort-asc':'' ?>"></i></th>
                                    <th on Click="list_sort('type')">类型<i class="<?php echo ($order['name']=='type' && $order['asc']=='desc')?'fa fa-sort-desc':'' ?>"></i><i class="<?php echo ($order['name']=='type' && $order['asc']=='asc')?'fa fa-sort-asc':'' ?>"></i></th>
                                    <th on Click="list_sort('operation')">操作<i class="<?php echo ($order['name']=='operation' && $order['asc']=='desc')?'fa fa-sort-desc':'' ?>"></i><i class="<?php echo ($order['name']=='operation' && $order['asc']=='asc')?'fa fa-sort-asc':'' ?>"></i></th>
                                    <th on Click="list_sort('desc')">内容<i class="<?php echo ($order['name']=='desc' && $order['asc']=='desc')?'fa fa-sort-desc':'' ?>"></i><i class="<?php echo ($order['name']=='desc' && $order['asc']=='asc')?'fa fa-sort-asc':'' ?>"></i></th>
									<th on Click="list_sort('operation_time')" >时间<i class="<?php echo ($order['name']=='operation_time' && $order['asc']=='desc')?'fa fa-sort-desc':'' ?>"></i><i class="<?php echo ($order['name']=='operation_time' && $order['asc']=='asc')?'fa fa-sort-asc':'' ?>"></i></th>
                                </tr>
                            </thead>
                            <tbody>
								<if condition="empty($loginfo) ">
									<tr>
										<th colspan="7">暂无记录</th>
									</tr>
								<else />
                                <foreach name="loginfo" item="vo" >
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.user_id}</td>
                                    <td>{$vo.type}</td>
                                    <td>{$vo.operation}</td>
                                    <td>{$vo.desc}</td>
                                    <td>{$vo.operation_time}</td>
                                </tr>
                                </foreach>
								</if>
                            </tbody>
                        </table>
						</form>
						
	<!-- 分页代码 -->
<div class="fixed-table-pagination" style="display: block;">
	<div class="pull-left pagination-detail">
		<span class="pagination-info">显示第 1 到第 10 条记录，总共 {$count.count} 条记录</span>
		<span class="page-list">每页显示 
			<span class="btn-group dropup">
				<button type="button" class="btn btn-default  btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
					<span class="page-size">{$count.pageSize}</span> <span class="caret"></span></button>
					<ul class="dropdown-menu" role="menu">
					<li class="<if condition=" $count.pageSize eq 10"> active </if>"><a href="javascript:page(1,10,'');">10</a></li>
					<li class="<if condition=" $count.pageSize eq 25"> active </if>"><a href="javascript:page(1,25,'');">25</a></li>
					<li class="<if condition=" $count.pageSize eq 50"> active </if>"><a href="javascript:page(1,50,'');">50</a></li>
					<li class="<if condition=" $count.pageSize eq 100"> active </if>"><a href="javascript:page(1,100,'');">100</a></li>
					</ul>
					</span> 条记录</span>
				</div>
				<div class="pull-right pagination-roll">
				<ul class="pagination pagination-outline">
					<li class="paginate_button <if condition=" $count.pageNo eq 1"> previous disabled </if>"><a href="javascript:" onClick="page(1,{$count.pageSize},'');"><i class="fa fa-angle-double-left"></i></a></li>
					<li class="paginate_button <if condition=" $count.pageNo eq 1"> previous disabled </if>"><a href="javascript:" onClick="<if condition=" $count.pageNo gt 1"> page({$count.pageNo}-1,{$count.pageSize},''); </if>"><i class="fa fa-angle-left"></i></a></li>
					 <if condition=" $count.countpage gt 10 "> 
					 	<if condition=" $count.pageNo lt 5 "> 
							<li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==1)?'current':'' ?>">1</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(2,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==2)?'current':'' ?>">2</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(3,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==3)?'current':'' ?>">3</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(4,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==4)?'current':'' ?>">4</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(5,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==5)?'current':'' ?>">5</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(6,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==6)?'current':'' ?>">6</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(7,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==7)?'current':'' ?>">7</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(8,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==8)?'current':'' ?>">8</a></li>
							<li class="paginate_button disabled"><a href="javascript:">...</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');">{$count.countpage}</a></li>
						<elseif condition="$count.pageNo lt $count.num and $count.pageNo egt 5"/>
							<li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');">1</a></li>
							<li class="paginate_button disabled"><a href="javascript:">...</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-3; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-3; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-2; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-2; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']-1; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']-1; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page({$count.pageNo},{$count.pageSize},'');" id='current'><?php echo $count['pageNo']; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+1; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+1; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+2; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+2; ?></a></li> 
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['pageNo']+3; ?>,{$count.pageSize},'');"><?php echo $count['pageNo']+3; ?></a></li>
							<li class="paginate_button disabled"><a href="javascript:">...</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');">{$count.countpage}</a></li>
						<else />
							<li class="paginate_button "><a href="javascript:" onClick="page(1,{$count.pageSize},'');">1</a></li>
							<li class="paginate_button disabled"><a href="javascript:">...</a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-4; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-4))?'current':'' ?>"><?php echo $count['countpage']-4; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-3; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-3))?'current':'' ?>"><?php echo $count['countpage']-3; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-2; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-2))?'current':'' ?>"><?php echo $count['countpage']-2; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']-1; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==($count['countpage']-1))?'current':'' ?>"><?php echo $count['countpage']-1; ?></a></li>
							<li class="paginate_button "><a href="javascript:" onClick="page(<?php echo $count['countpage']; ?>,{$count.pageSize},'');" id="<?php echo ($count['pageNo']==$count['countpage'])?'current':'' ?>"><?php echo $count['countpage']; ?></a></li>
						</if>
					<else />
						<for start="0" end="$count.countpage" name='i'>

							<li class="paginate_button <if condition=" $count.pageNo eq $count.countpage"> previous disabled </if>"><a href="javascript:" onClick="<if condition=' $count.pageNo lt $count.countpage'> page({$i+1},{$count.pageSize},''); </if>" id="<?php echo ($count['pageNo']==($i+1))?'current':'' ?>">{$i+1}</a></li>
						</for>
					</if>
					 <li class="paginate_button next <if condition=" $count.pageNo egt $count.countpage"> previous disabled </if>"><a href="javascript:" onClick="<if condition=" $count.pageNo lt $count.countpage ">page({$count.pageNo}+1,{$count.pageSize},'');</if>"><i class="fa fa-angle-right"></i></a></li>
					 <li class="paginate_button next <if condition=" $count.pageNo egt $count.countpage"> previous disabled </if>"><a href="javascript:" onClick="page({$count.countpage},{$count.pageSize},'');"><i class="fa fa-angle-double-right"></i></a></li>
                </ul>
			</div>
		</div>
	<br/>
	<br/>
	</div>
	</div>
</div>
                    </div>
                </div>
            </div>
             
        </div>
         
    </div>
 

<script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>
<script src="__PUBLIC__/js/bootstrap.min14ed.js?v=3.3.6"></script>
<script src="__PUBLIC__/js/plugins/peity/jquery.peity.min.js"></script>
<script src="__PUBLIC__/js/content.mine209.js?v=1.0.0"></script>
<script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/js/demo/peity-demo.min.js"></script>

<script src="__PUBLIC__/js/plugins/layer/laydate/laydate.js"></script>
<script src="__PUBLIC__/js/plugins/jquery.tablesort.min.js"></script>

<script>
$(document).ready(function(){
	$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})
	$('.check-all').iCheck({
		checkboxClass: 'icheckbox_square-green',
		radioClass: 'iradio_square-green',
	});
	 //ifCreated 事件应该在插件初始化之前绑定 
    $('.check-all').on('ifChecked', function(event){	$('.i-checks').iCheck('check');	});
	 //ifCreated 事件应该在插件初始化之前绑定
    $('.check-all').on('ifUnchecked', function(event){ 	  $('.i-checks').iCheck('uncheck');	});
	//表格排序
	$('.table').tablesort().data('tablesort');
	$('.table th.number').data('sortBy', function(th, td, sorter) {
		return parseInt(td.text(), 10);
	});
    
});
</script>

<script  type="text/javascript">
	
</script>
</body>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<script  type="text/javascript"  src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js"  id="J_secure_sdk_v2" data-appkey="23416550"></script>
</html>
